//
//  KAApplyTitleHeader.swift
//  kano
//
//  Created by Sophia on 2024/8/22.
//

import UIKit

class KAApplyTitleHeader: UITableViewHeaderFooterView {
    
    public var titleLabel: UILabel = {
        let label = UILabel()
        label.numberOfLines = 1
        label.font = UIFont.systemFont(ofSize: kscale(14), weight: .bold)
        label.textColor = .color323135
        label.text = ""
        return label
    }()
    
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        contentView.backgroundColor = .white
        createUI()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func createUI() {
        contentView.addSubview(titleLabel)
        titleLabel.translatesAutoresizingMaskIntoConstraints = false
        titleLabel.snp.makeConstraints { make in
            make.top.equalTo(contentView);
            make.left.equalTo(kscale(20));
        }
    }
    
}
